路由器基础配置之rip

 

我们将以上面的拓扑图进行实验,用rip协议来进行实验,目的是实现三台不同网段的pc机之间实现互相通信

首先为pc机配置好ip地址和网关,配置完IP地址后在配置路由器

router1:

enable  进入特权模式

config t  进入全局配置模式

interface g0/0  进入接口模式

ip address 192.168.40.254 255.255.255.0

no shu   启动接口

exit 

interface s0/3/0

ip address 192.168.70.1 255.255.255.0

no shu  

exit

在全局配置模式下

route rip

version 2

network 192.168.40.0
network 192.168.70.0

 

router2

enable  进入特权模式

config t  进入全局配置模式

interface s0/3/0  进入接口模式

ip address 192.168.70.2 255.255.255.0

clock rate 6400

no shu   启动接口

exit 

interface s0/3/1

ip address 192.168.90.1 255.255.255.0

clock rate 6400

no shu  

exit

interface s0/2/0

ip address 192.168.80.1 255.255.255.0

clock rate 6400

在全局配置模式下

route rip

version 2

network 192.168.80.0
network 192.168.70.0

network 192.168.90.0

 

router3

enable  进入特权模式

config t  进入全局配置模式

interface s0/3/0  进入接口模式

ip address 192.168.80.2 255.255.255.0

no shu   启动接口

exit 

interface g0/1

ip address 192.168.50.254 255.255.255.0

no shu  

exit

在全局配置模式下

route rip

version 2

network 192.168.50.0
network 192.168.80.0

 

router4

enable  进入特权模式

config t  进入全局配置模式

interface s0/3/0  进入接口模式

ip address 192.168.90.2 255.255.255.0

no shu   启动接口

exit 

interface g0/0

ip address 192.168.60.254 255.255.255.0

no shu  

exit

在全局配置模式下

route rip

version 2

network 192.168.60.0
network 192.168.90.0

这样rip动态路由就完成了,可以在路由器的特权模式下使用show ip route来查看路由表

等待路由器之间相互学习完成,就可以实现不同网段的pc机之间相互通信,记得要给pc机添加网关

转载于:https://www.cnblogs.com/wuhaohao/p/9210074.html

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值